package cn.com.joycode.nimble.core.status;

import lombok.AccessLevel;
import lombok.AllArgsConstructor;
import lombok.Getter;

/**
 * 是否状态
 *
 * @author Max Woods
 */

@AllArgsConstructor(access = AccessLevel.PRIVATE)
public enum TrueFalseStatus {

    /**
     * 是
     */
    TRUE("是"),

    /**
     * 否
     */
    FALSE("否");

    @Getter
    private String desc;

    public boolean isTrue() {
        return this == TRUE;
    }

    public boolean isNotTrue() {
        return this != TRUE;
    }

    public boolean isFalse() {
        return this == FALSE;
    }

    public boolean isNotFalse() {
        return this != FALSE;
    }
}